#include "thread.h"
//#include "ui_mainwindow.h"

Thread::Thread(QObject *parent)
    :QThread(parent)
{
    SIGN = 1;
}

void Thread::run()
{
    while(SIGN == 1){
    emit sigtest();
    QThread::msleep(20);
    }
}

void Thread::stop_thread()
{
    SIGN = 0;
}


